
const initState = {
	token: '',
	loginType: '', //1 一级代理商 2 二级代理商 3商家
	account: '',
	pwd: '',
	loginId: '', //当前登录账号的id
	adminInfo:{}
}
export default {
	state: {
		...initState,
		initState() {
			return initState
		}
	},
	mutations: {
		adminLogin(state, data) {
			console.log('state-',state);
			console.log('data-',data);
			Object.assign(state, data);
		},
		adminLogout(state) {
			console.log('state-',state);
			console.log('data-',data);
			initState.account = state.account;
			Object.assign(state, initState);
		}
	},
	actions: {
		
		
	}
}
